Understanding the command line parameters

Besides the interactive mode described in Synchronizing user groups with Active Directory, the program can also be run from the command line in silent mode. This can be useful to incorporate the program in batch files or scheduled tasks so that it runs regularly to maintain synchronization.

To run ADSyncUsers.exe from the command line:

By default, a log file of the actions that are taken will be created in the same folder as the program. You can specify a different location and file name by also specifying the -logpath parameter on the command line as in the following example.

C:\Program Files\BC-Meridian\Program Files\ADSyncUsers.exe 
-silent -logpath=C:\LogFiles\ADSyncUsersLog.txt

When run in silent mode, the program reads the configuration settings in the file ADSyncUsersConfig.ini that is located in the same folder as the program. You may edit the configuration file in any text editor.

Note    The account password typed in Password is stored in the configuration file in encrypted form and may not be edited manually. Therefore, run the program in interactive mode to enter the password.

Related tasks

Synchronizing user groups with Active Directory

Mapping the user properties and groups